<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>应用集合</title>
    <style>
        /* 全局样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
        }

        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* 头部样式 */
        header {
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            color: white;
            padding: 60px 0;
            text-align: center;
        }

        .app-logo {
            width: 120px;
            height: 120px;
            border-radius: 24px;
            margin-bottom: 20px;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
        }

        h1 {
            font-size: 2.8rem;
            margin-bottom: 15px;
            font-weight: 700;
        }

        .tagline {
            font-size: 1.2rem;
            margin-bottom: 30px;
            opacity: 0.9;
        }

        /* 应用列表样式 */
        .app-list {
            padding: 80px 0;
            background-color: white;
        }

        .section-title {
            text-align: center;
            font-size: 2.2rem;
            margin-bottom: 50px;
            color: #333;
        }

        .apps-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 30px;
        }

        .app-card {
            background-color: #fff;
            border-radius: 15px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            padding: 25px;
            transition: all 0.3s ease;
        }

        .app-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
        }

        .app-header {
            display: flex;
            margin-bottom: 15px;
        }

        .app-icon {
            width: 80px;
            height: 80px;
            border-radius: 16px;
            margin-right: 15px;
        }

        .app-info {
            flex: 1;
        }

        .app-info h3 {
            font-size: 1.4rem;
            margin-bottom: 5px;
        }

        .app-category {
            color: #666;
            font-size: 0.9rem;
            margin-bottom: 5px;
        }

        .app-rating {
            display: flex;
            align-items: center;
        }

        .stars {
            color: #ffc107;
            margin-right: 10px;
        }

        .rating-count {
            font-size: 0.9rem;
            color: #666;
        }

        .app-description {
            margin-bottom: 20px;
            line-height: 1.5;
        }



        .app-download {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .download-btn-small {
            display: inline-flex;
            align-items: center;
            background-color: #f5f5f5;
            color: #333;
            padding: 8px 15px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.9rem;
            transition: all 0.3s ease;
        }

        .download-btn-small:hover {
            background-color: #e5e5e5;
        }

        .download-btn-small img {
            width: 18px;
            margin-right: 8px;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            h1 {
                font-size: 2.2rem;
            }

            .tagline {
                font-size: 1rem;
            }

            .app-logo {
                width: 100px;
                height: 100px;
            }

            .section-title {
                font-size: 1.8rem;
            }

            .apps-grid {
                grid-template-columns: 1fr;
            }

            .app-screenshots img {
                width: 140px;
            }
        }

        @media (max-width: 480px) {
            header {
                padding: 40px 0;
            }

            h1 {
                font-size: 1.8rem;
            }
        }
    </style>
    <!-- 引入Font Awesome图标库 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        /* 按钮布局样式 */
        .app-download {
            margin-top: 15px;
            display: flex;
            justify-content: space-between;
            gap: 15px;
        }
        
        .app-download a {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            height: 100%;
            text-decoration: none;
        }

        /* 二维码弹窗样式 */
        .qr-modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
        }

        .qr-content {
            background-color: white;
            margin: 15% auto;
            padding: 20px;
            border-radius: 15px;
            width: 300px;
            text-align: center;
        }

        .qr-close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

        .qr-close:hover {
            color: black;
        }

        .qr-img {
            width: 250px;
            height: 250px;
            margin: 20px auto;
        }

        .qr-title {
            font-size: 1.2rem;
            margin-bottom: 10px;
        }
    </style>
</head>

<body>

    <!-- 仅微信浏览器显示的提示浮层 -->
    <div id="wechatTip" style="position:fixed; top:0; left:0; width:100%; height:100%; background-color:rgba(0,0,0,0.8); z-index:9999; display:none; justify-content:center; align-items:center;">
        <div style="background-color:#fff; padding:20px; border-radius:10px; max-width:80%; text-align:center;">
            <h3 style="color:#333; margin-bottom:15px;">微信浏览器提示</h3>
            <p style="color:#666; margin-bottom:20px;">当前在微信内置浏览器中打开，部分功能可能受限。为了获得完整体验，请点击右上角菜单，选择"在浏览器中打开"</p>
            <button id="closeTip" style="background-color:#6a11cb; color:white; border:none; padding:8px 15px; border-radius:5px; cursor:pointer;">我知道了</button>
        </div>
    </div>

    <!-- 微信浏览器专属检测脚本 -->
    <script>
        // 检测是否为微信内置浏览器
        function isWeChatBrowser() {
            var ua = navigator.userAgent.toLowerCase();
            // 仅当包含micromessenger时才识别为微信浏览器
            return ua.indexOf('micromessenger') !== -1;
        }
        // 仅在微信浏览器中显示提示
        if(isWeChatBrowser()) {
            document.getElementById('wechatTip').style.display = 'flex';
        }

        // 关闭提示
        document.getElementById('closeTip').addEventListener('click', function() {
            document.getElementById('wechatTip').style.display = 'none';
        });
    </script>

    <!-- 应用列表区域 -->
    <section class="app-list" id="app-list">
        <div class="container">
            <h2 class="section-title">精选应用</h2>
            <div class="apps-grid">
                <!-- 应用1：TV应用 移动版 -->
                <div class="app-card">
                    <div class="app-header">
                        <img src=""
                            alt="TV应用 Logo" class="app-icon">
                        <div class="app-info">
                            <h3>筱筱影视(移动版)</h3>
                            <p class="app-category">影视播放器</p>
                            <div class="app-rating">
                                <span class="stars">★★★★★</span>
                                <span class="rating-count">4.9 (3.2万评价)</span>
                            </div>
                        </div>
                    </div>
                    <p class="app-description">专为移动设备优化的影视播放器，支持多种视频格式，流畅播放体验，个性化推荐。</p>

                    <div class="app-download">
                        <a href="https://raw.gitcode.com/cyh92/Release/raw/main/apk/release/mobile-java-arm64_v8a.apk" class="download-btn-small">
                            立即下载
                        </a>
                        <a href="#" class="download-btn-small qr-btn">
                            扫码下载
                        </a>
                    </div>
                </div>

                <!-- 应用2：TV应用 电视版 -->
                <div class="app-card">
                    <div class="app-header">
                        <img src=""
                            alt="TV应用 Logo" class="app-icon">
                        <div class="app-info">
                            <h3>筱筱影视(电视版)</h3>
                            <p class="app-category">电视播放器</p>
                            <div class="app-rating">
                                <span class="stars">★★★★★</span>
                                <span class="rating-count">4.8 (2.9万评价)</span>
                            </div>
                        </div>
                    </div>
                    <p class="app-description">专为智能电视优化的播放器，大屏体验，遥控器友好操作。仅支持Android5+</p>

                    <div class="app-download">
                        <a href="https://raw.gitcode.com/cyh92/Release/raw/main/apk/release/leanback-java-arm64_v8a.apk" class="download-btn-small">
                            立即下载
                        </a>
                        <a href="#" class="download-btn-small qr-btn">
                            扫码下载
                        </a>
                    </div>
                </div>

                <!-- 应用3：Legado阅读器 -->
                <div class="app-card">
                    <div class="app-header">
                        <img src=""
                            alt="Legado Logo" class="app-icon">
                        <div class="app-info">
                            <h3>筱筱阅读</h3>
                            <p class="app-category">开源阅读器</p>
                            <div class="app-rating"></div>
                            <span class="stars">★★★★★</span>
                            <span class="rating-count">4.9 (3.5万评价)</span>
                        </div>

                    </div>
                    <p class="app-description">开源阅读器，支持自定义书源，多种阅读模式，夜间模式，自动翻页等功能。</p>

                    <div class="app-download">
                        <a href="https://raw.gitcode.com/cyh92/Release/raw/main/apk/release/legado_app_3.25.apk" class="download-btn-small">
                            立即下载
                        </a>
                        <a href="#" class="download-btn-small qr-btn">
                            扫码下载
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- 二维码弹窗HTML -->
    <div id="qrModal" class="qr-modal">
        <div class="qr-content">
            <span class="qr-close">&times;</span>
            <h3 class="qr-title" id="qrTitle">扫码下载</h3>
            <img id="qrImage" class="qr-img" src="" alt="应用下载二维码">
        </div>
    </div>

    <script>
        // 获取弹窗元素
        const modal = document.getElementById("qrModal");
        const qrImage = document.getElementById("qrImage");
        const qrTitle = document.getElementById("qrTitle");
        const closeBtn = document.querySelector(".qr-close");

        // 二维码图片映射
        const qrImages = {
            "tv-mobile": "https://api.qrserver.com/v1/create-qr-code/?size=250x250&data=https://raw.gitcode.com/cyh92/Release/raw/main/apk/release/mobile-java-arm64_v8a.apk",
            "tv-tv": "https://api.qrserver.com/v1/create-qr-code/?size=250x250&data=https://raw.gitcode.com/cyh92/Release/raw/main/apk/release/leanback-java-arm64_v8a.apk",
            "legado": "https://api.qrserver.com/v1/create-qr-code/?size=250x250&data=https://raw.gitcode.com/cyh92/Release/raw/main/apk/release/legado_app_3.25.apk"
        };

        // 为所有扫码下载按钮添加点击事件
        document.querySelectorAll('.qr-btn').forEach(btn => {
            btn.addEventListener('click', function (e) {
                e.preventDefault();
                const appCard = this.closest('.app-card');
                const appName = appCard.querySelector('h3').textContent;

                // 设置二维码图片和标题
                if (appName.includes('移动版')) {
                    qrImage.src = qrImages['tv-mobile'];
                    qrTitle.textContent = '筱筱影视 移动版下载';
                } else if (appName.includes('电视版')) {
                    qrImage.src = qrImages['tv-tv'];
                    qrTitle.textContent = '筱筱影视 电视版下载';
                } else if (appName.includes('阅读')) {
                    qrImage.src = qrImages['legado'];
                    qrTitle.textContent = '筱筱阅读下载';
                }

                // 显示弹窗
                modal.style.display = "block";
            });
        });

        // 点击关闭按钮关闭弹窗
        closeBtn.onclick = function () {
            modal.style.display = "none";
        };

        // 点击弹窗外部关闭弹窗
        window.onclick = function (event) {
            if (event.target == modal) {
                modal.style.display = "none";
            }
        };
    </script>
</body>

</html>